package com.hsp.demo_10.mystatic;

public class Demo_01 {

    public static void main(String[] args) {
        new Test().test(); //9
        new Test().test(); //10
        System.out.println(Test.count); //11

        for (int i = 0; i < args.length; i++) {
            System.out.println("第" + (i + 1) + "个参数是" + args[i]);
        }
    }
}

class Test{
    public static int count = 9;

    public void test(){
        //和有没有括号是没有关系的，只要是++在后，则是最后执行该++操作
        System.out.println("当前count的值为：" + (count++));
    }

}
